﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace CreditAgricole.SPTest.CACustomApprovalTechProc
{
    public sealed partial class CACustomApprovalTechProc
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.Runtime.CorrelationToken correlationtoken2 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            this.logToHistoryListActivity5 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.updateAllTasks1 = new Microsoft.SharePoint.WorkflowActions.UpdateAllTasks();
            this.sendEmail2 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.logToHistoryListActivity2 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.sendEmail1 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.logToHistoryListActivity3 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.faultHandlerActivity1 = new System.Workflow.ComponentModel.FaultHandlerActivity();
            this.isNotApproved = new System.Workflow.Activities.IfElseBranchActivity();
            this.isApproved = new System.Workflow.Activities.IfElseBranchActivity();
            this.faultHandlersActivity1 = new System.Workflow.ComponentModel.FaultHandlersActivity();
            this.onTaskChanged = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
            this.faultHandlersActivity3 = new System.Workflow.ComponentModel.FaultHandlersActivity();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.completeTask1 = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
            this.whileNotCompleted = new System.Workflow.Activities.WhileActivity();
            this.logToHistoryListActivity1 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.createApprovalTask = new Microsoft.SharePoint.WorkflowActions.CreateTask();
            this.sendNotificationEmail = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.sequenceActivity1 = new System.Workflow.Activities.SequenceActivity();
            this.faultHandlersActivity2 = new System.Workflow.ComponentModel.FaultHandlersActivity();
            this.cancellationHandlerActivity2 = new System.Workflow.ComponentModel.CancellationHandlerActivity();
            this.createParallelTaskActivity = new System.Workflow.Activities.ReplicatorActivity();
            this.logToHistoryListActivity4 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.onWFActivated = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            // 
            // logToHistoryListActivity5
            // 
            this.logToHistoryListActivity5.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity5.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowError;
            this.logToHistoryListActivity5.HistoryDescription = "";
            this.logToHistoryListActivity5.HistoryOutcome = "";
            this.logToHistoryListActivity5.Name = "logToHistoryListActivity5";
            this.logToHistoryListActivity5.OtherData = "";
            this.logToHistoryListActivity5.UserId = -1;
            // 
            // updateAllTasks1
            // 
            correlationtoken1.Name = "TechProcWorkflowToken";
            correlationtoken1.OwnerActivityName = "CACustomApprovalTechProc";
            this.updateAllTasks1.CorrelationToken = correlationtoken1;
            this.updateAllTasks1.Name = "updateAllTasks1";
            this.updateAllTasks1.TaskProperties = null;
            // 
            // sendEmail2
            // 
            this.sendEmail2.BCC = null;
            this.sendEmail2.Body = null;
            this.sendEmail2.CC = null;
            correlationtoken2.Name = "TechProcTaskToken";
            correlationtoken2.OwnerActivityName = "sequenceActivity1";
            this.sendEmail2.CorrelationToken = correlationtoken2;
            this.sendEmail2.From = null;
            this.sendEmail2.Headers = null;
            this.sendEmail2.IncludeStatus = false;
            this.sendEmail2.Name = "sendEmail2";
            this.sendEmail2.Subject = null;
            this.sendEmail2.To = null;
            // 
            // logToHistoryListActivity2
            // 
            this.logToHistoryListActivity2.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity2.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logToHistoryListActivity2.HistoryDescription = "";
            this.logToHistoryListActivity2.HistoryOutcome = "";
            this.logToHistoryListActivity2.Name = "logToHistoryListActivity2";
            this.logToHistoryListActivity2.OtherData = "";
            this.logToHistoryListActivity2.UserId = -1;
            // 
            // sendEmail1
            // 
            this.sendEmail1.BCC = null;
            this.sendEmail1.Body = null;
            this.sendEmail1.CC = null;
            this.sendEmail1.CorrelationToken = correlationtoken2;
            this.sendEmail1.From = null;
            this.sendEmail1.Headers = null;
            this.sendEmail1.IncludeStatus = false;
            this.sendEmail1.Name = "sendEmail1";
            this.sendEmail1.Subject = null;
            this.sendEmail1.To = null;
            // 
            // logToHistoryListActivity3
            // 
            this.logToHistoryListActivity3.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity3.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logToHistoryListActivity3.HistoryDescription = "";
            this.logToHistoryListActivity3.HistoryOutcome = "";
            this.logToHistoryListActivity3.Name = "logToHistoryListActivity3";
            this.logToHistoryListActivity3.OtherData = "";
            this.logToHistoryListActivity3.UserId = -1;
            // 
            // faultHandlerActivity1
            // 
            this.faultHandlerActivity1.Activities.Add(this.logToHistoryListActivity5);
            this.faultHandlerActivity1.FaultType = null;
            this.faultHandlerActivity1.Name = "faultHandlerActivity1";
            // 
            // isNotApproved
            // 
            this.isNotApproved.Activities.Add(this.logToHistoryListActivity2);
            this.isNotApproved.Activities.Add(this.sendEmail2);
            this.isNotApproved.Activities.Add(this.updateAllTasks1);
            this.isNotApproved.Name = "isNotApproved";
            // 
            // isApproved
            // 
            this.isApproved.Activities.Add(this.logToHistoryListActivity3);
            this.isApproved.Activities.Add(this.sendEmail1);
            this.isApproved.Name = "isApproved";
            // 
            // faultHandlersActivity1
            // 
            this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
            this.faultHandlersActivity1.Name = "faultHandlersActivity1";
            // 
            // onTaskChanged
            // 
            this.onTaskChanged.AfterProperties = null;
            this.onTaskChanged.BeforeProperties = null;
            this.onTaskChanged.CorrelationToken = correlationtoken2;
            this.onTaskChanged.Executor = null;
            this.onTaskChanged.Name = "onTaskChanged";
            this.onTaskChanged.TaskId = new System.Guid("00000000-0000-0000-0000-000000000000");
            // 
            // faultHandlersActivity3
            // 
            this.faultHandlersActivity3.Name = "faultHandlersActivity3";
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.isApproved);
            this.ifElseActivity1.Activities.Add(this.isNotApproved);
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // completeTask1
            // 
            this.completeTask1.CorrelationToken = correlationtoken2;
            this.completeTask1.Name = "completeTask1";
            this.completeTask1.TaskId = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind1.Name = "CACustomApprovalTechProc";
            activitybind1.Path = "taskOutcome";
            this.completeTask1.MethodInvoking += new System.EventHandler(this.completeTask1_MethodInvoking);
            this.completeTask1.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // whileNotCompleted
            // 
            this.whileNotCompleted.Activities.Add(this.onTaskChanged);
            this.whileNotCompleted.Activities.Add(this.faultHandlersActivity1);
            activitybind2.Name = "CACustomApprovalTechProc";
            activitybind2.Path = "whileNotCompleted_Condition1";
            codecondition1.SetBinding(System.Workflow.Activities.CodeCondition.ConditionEvent, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.whileNotCompleted.Condition = codecondition1;
            this.whileNotCompleted.Name = "whileNotCompleted";
            // 
            // logToHistoryListActivity1
            // 
            this.logToHistoryListActivity1.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity1.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.TaskCreated;
            this.logToHistoryListActivity1.HistoryDescription = "";
            this.logToHistoryListActivity1.HistoryOutcome = "";
            this.logToHistoryListActivity1.Name = "logToHistoryListActivity1";
            this.logToHistoryListActivity1.OtherData = "";
            this.logToHistoryListActivity1.UserId = -1;
            // 
            // createApprovalTask
            // 
            this.createApprovalTask.CorrelationToken = correlationtoken2;
            this.createApprovalTask.ListItemId = -1;
            this.createApprovalTask.Name = "createApprovalTask";
            this.createApprovalTask.SpecialPermissions = null;
            this.createApprovalTask.TaskId = new System.Guid("00000000-0000-0000-0000-000000000000");
            this.createApprovalTask.TaskProperties = null;
            this.createApprovalTask.MethodInvoking += new System.EventHandler(this.createApprovalTask_MethodInvoking);
            // 
            // sendNotificationEmail
            // 
            this.sendNotificationEmail.BCC = null;
            this.sendNotificationEmail.Body = null;
            this.sendNotificationEmail.CC = null;
            this.sendNotificationEmail.CorrelationToken = correlationtoken2;
            this.sendNotificationEmail.From = null;
            this.sendNotificationEmail.Headers = null;
            this.sendNotificationEmail.IncludeStatus = false;
            this.sendNotificationEmail.Name = "sendNotificationEmail";
            this.sendNotificationEmail.Subject = null;
            this.sendNotificationEmail.To = null;
            this.sendNotificationEmail.MethodInvoking += new System.EventHandler(this.sendEmail1_MethodInvoking);
            // 
            // sequenceActivity1
            // 
            this.sequenceActivity1.Activities.Add(this.sendNotificationEmail);
            this.sequenceActivity1.Activities.Add(this.createApprovalTask);
            this.sequenceActivity1.Activities.Add(this.logToHistoryListActivity1);
            this.sequenceActivity1.Activities.Add(this.whileNotCompleted);
            this.sequenceActivity1.Activities.Add(this.completeTask1);
            this.sequenceActivity1.Activities.Add(this.ifElseActivity1);
            this.sequenceActivity1.Activities.Add(this.faultHandlersActivity3);
            this.sequenceActivity1.Name = "sequenceActivity1";
            // 
            // faultHandlersActivity2
            // 
            this.faultHandlersActivity2.Name = "faultHandlersActivity2";
            // 
            // cancellationHandlerActivity2
            // 
            this.cancellationHandlerActivity2.Name = "cancellationHandlerActivity2";
            activitybind3.Name = "CACustomApprovalTechProc";
            activitybind3.Path = "approvers";
            // 
            // createParallelTaskActivity
            // 
            this.createParallelTaskActivity.Activities.Add(this.sequenceActivity1);
            this.createParallelTaskActivity.Description = "Create all tasks in parallel";
            this.createParallelTaskActivity.ExecutionType = System.Workflow.Activities.ExecutionType.Parallel;
            this.createParallelTaskActivity.Name = "createParallelTaskActivity";
            this.createParallelTaskActivity.ChildInitialized += new System.EventHandler<System.Workflow.Activities.ReplicatorChildEventArgs>(this.createParallelTaskActivity_ChildInitialized);
            this.createParallelTaskActivity.Initialized += new System.EventHandler(this.createParallelTaskActivity_Initialized);
            this.createParallelTaskActivity.SetBinding(System.Workflow.Activities.ReplicatorActivity.InitialChildDataProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // logToHistoryListActivity4
            // 
            this.logToHistoryListActivity4.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity4.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowStarted;
            this.logToHistoryListActivity4.HistoryDescription = "";
            this.logToHistoryListActivity4.HistoryOutcome = "";
            this.logToHistoryListActivity4.Name = "logToHistoryListActivity4";
            this.logToHistoryListActivity4.OtherData = "";
            this.logToHistoryListActivity4.UserId = -1;
            activitybind5.Name = "CACustomApprovalTechProc";
            activitybind5.Path = "workflowId";
            // 
            // onWFActivated
            // 
            this.onWFActivated.CorrelationToken = correlationtoken1;
            this.onWFActivated.Description = "Workflow activated";
            this.onWFActivated.EventName = "OnWorkflowActivated";
            this.onWFActivated.Name = "onWFActivated";
            activitybind4.Name = "CACustomApprovalTechProc";
            activitybind4.Path = "workflowProperties";
            this.onWFActivated.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onWFActivated_Invoked);
            this.onWFActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.onWFActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // CACustomApprovalTechProc
            // 
            this.Activities.Add(this.onWFActivated);
            this.Activities.Add(this.logToHistoryListActivity4);
            this.Activities.Add(this.createParallelTaskActivity);
            this.Activities.Add(this.cancellationHandlerActivity2);
            this.Activities.Add(this.faultHandlersActivity2);
            this.Name = "CACustomApprovalTechProc";
            this.CanModifyActivities = false;

        }

        #endregion

        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity logToHistoryListActivity4;

        private Microsoft.SharePoint.WorkflowActions.SendEmail sendEmail2;

        private Microsoft.SharePoint.WorkflowActions.SendEmail sendEmail1;

        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity logToHistoryListActivity5;

        private Microsoft.SharePoint.WorkflowActions.UpdateAllTasks updateAllTasks1;

        private FaultHandlerActivity faultHandlerActivity1;

        private FaultHandlersActivity faultHandlersActivity1;

        private FaultHandlersActivity faultHandlersActivity3;

        private IfElseBranchActivity isNotApproved;

        private IfElseBranchActivity isApproved;

        private IfElseActivity ifElseActivity1;

        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity logToHistoryListActivity2;

        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity logToHistoryListActivity3;

        private ReplicatorActivity createParallelTaskActivity;

        private Microsoft.SharePoint.WorkflowActions.SendEmail sendNotificationEmail;

        private Microsoft.SharePoint.WorkflowActions.CreateTask createApprovalTask;

        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity logToHistoryListActivity1;

        private Microsoft.SharePoint.WorkflowActions.OnTaskChanged onTaskChanged;

        private Microsoft.SharePoint.WorkflowActions.CompleteTask completeTask1;

        private WhileActivity whileNotCompleted;

        private SequenceActivity sequenceActivity1;

        private FaultHandlersActivity faultHandlersActivity2;

        private CancellationHandlerActivity cancellationHandlerActivity2;

        private Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated onWFActivated;














































    }
}
